<?php
/**
 * Joomla! 1.5 component ArticleCashRewards
 *
 * @version $Id: profile.php 2009-05-10 01:47:01 svn $
 * @author Maverick
 * @package Joomla
 * @subpackage components.views.tmpl
 * @link http://joomladev.boddunan.com
 * @license GNU/GPL
 *
 * Review and approve the articles and assign points and cash rewards.
 * Users can see their articles and the points/cash rewards assigned in the front-end module.
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
include('tabs.php');
?>
<div class="current"><dd style="display: block;">
<form action="index.php?option=com_articlecashrewards&controller=mypage&task=saveprofile" method="post" name="adminForm">
<table class="noshow">
    <tr>
        <td>
            <table class="acrtable">
                <tr>
                    <td class="key">
                        <span><?php echo JText::_('LABEL_PAYEE_NAME');?></span>
                    </td>
                    <td>
                     <?php
                        if($this->profile && isset($this->profile['payee_name'])){
                            echo $this->profile['payee_name'];
                        }else{
                     ?>
                            <input type="text" id="payee_name" name="payee_name" size="30" class="inputbox">
                    <?php
                        }
                    ?>
                    </td>
                    <td class="info">
                        <?php echo JText::_('LABEL_PAYEE_NAME_DESC');?>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <span><?php echo JText::_('LABEL_CONTACT');?></span>
                    </td>
                    <td>
                        <input type="text" id="payee_contact" name="payee_contact" size="30" class="inputbox"
                            value="<?php echo $this->profile['payee_contact']; ?>">
                    </td>
                    <td class="info">
                        <?php echo JText::_('LABEL_CONTACT_DESC');?>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <span><?php echo JText::_('LABEL_PAY_THRESHOLD');?></span>
                    </td>
                    <td>
                        <input type="text" id="payee_threshold" name="payee_threshold" size="30" class="inputbox"
                            value="<?php echo $this->profile['payee_threshold']; ?>">
                    </td>
                    <td class="info">
                        <?php echo JText::_('LABEL_PAY_THRESHOLD_DESC');?>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <span><?php echo JText::_('LABEL_PAYEE_ADDRESS1');?></span>
                    </td>
                    <td>
                        <input type="text" id="payee_address1" name="payee_address1" size="30" class="inputbox"
                            value="<?php echo $this->profile['payee_address1']; ?>">
                    </td>
                    <td class="info" rowspan="3">
                        <?php echo JText::_('LABEL_PAYEE_ADDRESS_DESC');?>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <span><?php echo JText::_('LABEL_PAYEE_ADDRESS2');?></span>
                    </td>
                    <td>
                        <input type="text" id="payee_address2" name="payee_address2" size="30" class="inputbox"
                            value="<?php echo $this->profile['payee_address2']; ?>">
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <span><?php echo JText::_('LABEL_PAYEE_ADDRESS3');?></span>
                    </td>
                    <td>
                        <input type="text" id="payee_address3" name="payee_address3" size="30" class="inputbox"
                            value="<?php echo $this->profile['payee_address3']; ?>">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table class="acrtable">
                <tr>
                    <td class="key">
                        <span><?php echo JText::_('LABEL_IDENTIFICATION_NUMBER');?></span>
                    </td>
                    <td>
                        <?php if($this->profile['security_code'] == "1"){ ?>
                            <?php echo JText::_('LABEL_ID_VALIDATED'); ?>
                        <?php } else { ?>
                            <input type="text" id="payee_identification" name="payee_identification" size="30" class="inputbox"/>
                        <?php } ?>
                    </td>
                    <?php if($this->profile['security_code'] != "1"){ ?>
                    <td class="info">
                        <?php echo JText::_('LABEL_IDENTIFICATION_DESC');?>
                    </td>
                    <?php } ?>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <input type="submit" class="button" value="<?php echo JText::_('LABEL_SAVE')?>">
        </td>
    </tr>
    <tr>
        <td align="center" nowrap="nowrap">
            <div style="font-size: 9px;;">
            Article Cash Rewards powered by <a href="http://boddunan.com">boddunan.com</a>
            </div>
        </td>
    </tr>
</table>
</form>
</dd></div>